<?php
session_start();
function __autoload($class_name) {
    include '../class/' . $class_name . '.php';
}
?>
<?php include("functions.php"); ?>
<?php include("connection.php"); ?>
<?php
if (isLoggedIn()) {
	if(isset($_GET['id']) && isset($_GET['tip'])) {
		$user = new PredictionUser($_SESSION['bl_user_id']);
		$user->getEmptyMatch();
		$user->getTips();
		$user->insertTip($_GET['id'],$_GET['tip']);
	}
}
	header("Location: ../prediction");
?>